<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>标准盒子和怪异盒子</title>
    <style>
        #W{
            box-sizing:border-box;
            width: 100px;
            height: 100px;
            background-color: cyan;
            float: left;
            padding: 10px;
            border: 10px solid black;

        }
        #I {
            box-sizing:content-box;
            width: 100px;
            height: 100px;
            background-color: pink;
            margin-left: 120px;
            padding: 10px;
            border: 10px solid black;
        }
    </style>
</head>
<body>
    <div id="W"></div>
    <div id="I"></div>
</body>
</html>
